package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.czwj.dao.QuantitiesMapper;
import com.czwj.entities.Quantities;
import com.czwj.service.QuantitiesService;

/**
* @ClassName: QuantitiesServiceImpl
* @Description: TODO
* @author H
* @date 2020年4月22日
*
*/
@Service
public class QuantitiesServiceImpl implements QuantitiesService{
	@Resource
	QuantitiesMapper mapper;

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.QuantitiesService#search(java.util.Map)
	*/
	@Override
	public List<Quantities> search(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.search(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.QuantitiesService#count(java.util.Map)
	*/
	@Override
	public int count(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.count(map);
	}

	/** 
	* 
	* @param item
	* @return
	* @see com.czwj.service.QuantitiesService#update(com.czwj.entities.Quantities)
	*/
	@Override
	public int update(Quantities item){
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(item);
	}

	/** 
	* 
	* @param item
	* @return
	* @see com.czwj.service.QuantitiesService#insert(com.czwj.entities.Quantities)
	*/
	@Override
	public int insert(Quantities item){
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(item);
	}

	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.QuantitiesService#delete(java.lang.Integer)
	*/
	@Override
	public int delete(Integer id){
		// TODO Auto-generated method stub
		return this.mapper.deleteByPrimaryKey(id);
	}

	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.QuantitiesService#selectByPrimaryKey(int)
	*/
	@Override
	public Quantities selectByPrimaryKey(int id){
		// TODO Auto-generated method stub
		return this.mapper.selectByPrimaryKey(id);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.QuantitiesService#searchbylevel2(java.util.Map)
	*/
	@Override
	public List<Quantities> searchbylevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.searchbylevel2(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.QuantitiesService#countbylevel2(java.util.Map)
	*/
	@Override
	public int countbylevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.countbylevel2(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.QuantitiesService#searchReviewedLevel2(java.util.Map)
	*/
	@Override
	public List<Quantities> searchReviewedLevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.searchReviewedLevel2(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.QuantitiesService#countReviewedLevel2(java.util.Map)
	*/
	@Override
	public int countReviewedLevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.countReviewedLevel2(map);
	}
}
